/**
 * 
 */
package org.codesketch.birch.ssh;

/**
 * @author quirino
 *
 */
public class ShellStatement extends Statement {
	
	private String directory;
	private String statement;
	
	/**
	 * @param directory
	 * @param statement
	 */
	private ShellStatement(String directory, String statement) {
		this.directory = directory;
		this.statement = statement;
	}

	/* (non-Javadoc)
	 * @see com.accenture.birch.ssh.Statement#directory()
	 */
	@Override
	public String directory() {
		return directory;
	}

	/* (non-Javadoc)
	 * @see com.accenture.birch.ssh.Statement#statement()
	 */
	@Override
	public String statement() {
		return statement;
	}

	public static final ShellStatement with(final String statement) {
		return new ShellStatement(null, statement);
	}
	
	public static final ShellStatement withDirectory(final String directory, final String statement) {
		return new ShellStatement(directory, statement);
	}
}
